package com.eamois.dao.manual;

import java.util.Collection;

import com.eamois.dao.BaseDao;
import com.eamois.domain.manual.EnsipEntity;
import com.eamois.domain.manual.EnsipType;


public interface EnsipEntityDao extends BaseDao<EnsipEntity>{
	EnsipEntity findEnsipEntityByOther(EnsipType ensipType,String name);
	
	Collection<EnsipEntity> findAllEnsipEntity();
	
	Collection<EnsipEntity> findEnsipEntityByOther(EnsipType ensipType,String name,String state);
	
	EnsipEntity findByTiaoJian(String name,EnsipType ensipType,String state);
	
	EnsipEntity findByCodeAndName(String code,String name);
	
	Collection<EnsipEntity> findEnsipEntityByType(EnsipType ensipType);
	
	Collection<EnsipEntity> findEnsipEntityByState(String state);
	
	//added by zy
	boolean updateEnsipEntity(int ensipEntityId,String bomName,String bomVar);
	
}
